package edu.whcp.comp2301.mapper;

import edu.whcp.comp2301.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    public List<Category> getAllCategories();

    public void addCategory(Category category);

    public Category getCategoryById(String id);

    public void editCategory(Category category);

    public void delCategoryById(String id);

    public Integer queryNewsNumByCategoryId(String id);
}
